package com.wlw.base;

import com.alibaba.fastjson.JSONObject;
import com.wlw.exception.AppUserException;
import com.wlw.service.RedisServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * service公用类
 */
@Component
public class BaseService extends Base {
    @Autowired
    private RedisServiceImpl redisServiceImpl;

    public JSONObject getBaseUserInfo(String sessionId)throws AppUserException{
        String json=redisServiceImpl.getValue(sessionId);
        JSONObject object=JSONObject.parseObject(json);
        return object;
    }


}
